cmake_minimum_required(VERSION 3.28)

set(PROJECT_NAME ServoShm)
project(${PROJECT_NAME} C)

set(PROJECT_SRC library.c)
set(CMAKE_C_STANDARD 11)

add_library(${PROJECT_NAME} SHARED ${PROJECT_SRC})

install(FILES "libServoShm.h" DESTINATION "/app/include/")
#install(FILES "Servoconfig.json" DESTINATION "/app/config/")
#install(FILES "cmake-build-release/libServo.so" DESTINATION "/app/lib/")
# 安装可执行文件的install命令
install(TARGETS ${PROJECT_NAME} DESTINATION /app/lib/)
